package com.chiao.core;

import javax.annotation.PostConstruct;
import javax.sql.DataSource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.jdbc.core.support.JdbcDaoSupport;

public abstract class AbsBaseDao extends JdbcDaoSupport{

	@Autowired
	@Qualifier("defaultDataSource")
	private DataSource dataSource;
	
	@PostConstruct
	void init(){
		super.setDataSource(dataSource);
	}
	
}
